﻿
using Test30.Core;

namespace Test30.Engine
{
    public abstract class FixedStat:StatBase
    {
        public int Current
        {
            get
            {
                int current = Base + BonusTotal;
                current = current.Clamp(GetTotalMin(), GetTotalMax());
                return current;
            }
        }

        protected FixedStat(int baseValue) : base(baseValue)
        {
        }

        protected abstract int GetTotalMin();
        protected abstract int GetTotalMax();
    }
}
